//
//  DNKTcpRequestManager.h
//  XiangJia
//
//  Created by user on 16/7/26.
//  Copyright © 2016年 Dnake. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void (^SocketBlock)(NSData *blockData) ;
typedef void(^SocketFailureBlock) (NSString *blockString);

@interface DNKTcpRequestManager : NSObject

@property (nonatomic, assign) float readTimeout;
@property (nonatomic, assign) float deplyTime;
@property (nonatomic, strong) SocketBlock zSocketBlock;
@property (nonatomic, strong) SocketFailureBlock zSocketFailureBlock;

+(DNKTcpRequestManager *)shareTcpManager;

- (BOOL)initWithPort:(NSInteger)port toIp:(NSString *)ip;

- (void)controllStripWithData:(NSData *)data;

-(void)returnData:(SocketBlock)block failure:(SocketFailureBlock)failureBlock;

@end
